package com.example.authority.entity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.example.authority.entity.User ;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.example.authority.entity.Seedcategory ;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

    import lombok.experimental.Accessors;


/**
 * @program:   
 * @ClassName:Seek
 * @description: 种子管理 实体类
 *       
 * @Version 3.0
 **/

@Data
    @Builder(toBuilder = true)
    @AllArgsConstructor
    @NoArgsConstructor
@TableName("sys_seek")
@Schema(title = "Seek对象", description = "种子管理")
    public class Seek implements Serializable{

    private static final long serialVersionUID = 1L;
        @Schema(title = "序列号")
                @TableId(value = "id", type = IdType.AUTO)
        @ExcelProperty("序列号")
private Long id;
        @Schema(title = "种子文件")
    @TableField("filename")
@ExcelProperty("种子文件")
private String filename;
        @Schema(title = "做种人")
    @TableField("userid")
@ExcelProperty("做种人")
private Long userid;
        @Schema(title = "创建时间")
                @TableField(value = "create_time", fill = FieldFill.INSERT)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ExcelProperty("创建时间")
private LocalDateTime createTime;
        @Schema(title = "修改时间")
                @TableField(value = "update_time", fill = FieldFill.UPDATE)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ExcelProperty("修改时间")
private LocalDateTime updateTime;
        @Schema(title = "种子描述")
    @TableField("seekContent")
@ExcelProperty("种子描述")
private String seekContent;
        @Schema(title = "是否通过管理员审核")
    @TableField("isCheck")
@ExcelProperty("是否通过管理员审核")
private Integer isCheck;
        @Schema(title = "种子封面")
    @TableField("image")
@ExcelProperty("种子封面")
private String image;
        @Schema(title = "被下载次数")
    @TableField("downloadnum")
@ExcelProperty("被下载次数")
private Integer downloadnum;
        @Schema(title = "种子名称")
    @TableField("seedname")
@ExcelProperty("种子名称")
private String seedname;
        @Schema(title = "种子类型")
    @TableField("categoryid")
@ExcelProperty("种子类型")
private Long categoryid;
        @Schema(title = "允许下载的用户等级")
    @TableField("downloadGrade")
@ExcelProperty("允许下载的用户等级")
private Integer downloadGrade;

    @Schema(title = "种子是否打折")
    @TableField("isdiscount")
    @ExcelProperty("允许下载的用户等级")
    private Integer isdiscount;

        @Schema(title = "源文件大小")
    @TableField("size")
@ExcelProperty("源文件大小")
private String size;
        @TableField(exist = false)
        @ExcelIgnore
        private User user = new User ();
        @TableField(exist = false)
        @ExcelIgnore
        private Seedcategory seedcategory = new Seedcategory ();

    @TableField(exist = false)
    @ExcelIgnore
    private Boolean isCollect=false;
}
